﻿@model IEnumerable<WhereAmiMvc.Entities.EmployeesOfLocation>

@{
    ViewBag.Title = "员工清单";
}

<h2>员工清单</h2>

<p>
    @Html.ActionLink("新增员工", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.FullName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SimplePinyin)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DeptName)
        </th>
        <th>操作</th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.FullName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SimplePinyin)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DeptName)
            </td>
            <td>
               @Html.ActionLink("✔|编辑", "Edit", new { id = item.IdEmployee }, new { @class = "btn btn-success" }) |
               @Html.ActionLink("ｉ|详细", "Details", new { id = item.IdEmployee }, new { @class = "btn btn-info" }) |
               @Html.ActionLink("✘|删除", "Delete", new { id = item.IdEmployee}, new { @class = "btn btn-danger" })
            </td>
        </tr>
    }

</table>


